package com.hyt.it.ogt.kq.service.bm.feign.tk;

import com.hyt.common.apiInfor.ApiResponse;
import com.hyt.loginfo.config.OAuth2FeignRequestConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 林坚丁
 * @date 2020/5/8 15:24
 * @Description
 */
@FeignClient(value = "it-ogt-tk", fallback = TkClientHystrix.class, configuration = OAuth2FeignRequestConfig.class)
public interface TkClient {

    @RequestMapping(value = "/external/item/itemCountStatistics", method = RequestMethod.GET)
    ApiResponse itemCountStatistics(@RequestParam String startDate, @RequestParam String endDate) throws Exception;

    @RequestMapping(value = "/external/paper/paperCountStatistics", method = RequestMethod.GET)
    ApiResponse paperCountStatistics(@RequestParam String startDate, @RequestParam String endDate) throws Exception;
}
